new Vue({
	el:"body",
	data:{
		phonenum:"",
		mypassword:""
	},
	created:function(){
		this.leancloudInit();
	},
	methods:{
		leancloudInit: function() {
			var APP_ID = 'c4w6bVvWfh8xxcmkBE1G0gIt-gzGzoHsz';
			var APP_KEY = 'JBikg4Ksk76zcTi5BKYWvTJF';
			AV.init({
				appId: APP_ID,
				appKey: APP_KEY
			});
		},
		dl: function() {
			var _this=this;
			AV.User.logIn(_this.phonenum, _this.mypassword).then(function(loginedUser) {
					history.back();
				}, function(error) {
					alert("请正确输入用户名密码");
				});
		},
		backpage:function(){
			history.back();
		},
		zc:function(){
			location.href="../register/register.html"
		}
	}
})